let fs=require('fs'),
http=require('http'),
url=require('url');

let h=(req,res)=>{
  let {pathname}=url.parse(req.url);
  fs.readFile('./c.html','utf8',(err,s)=>{
      res.writeHead(200,{
          'Content-Type':'text/html;charset=utf-8'
      })
      res.end(s);
  })
}
http.createServer(h).listen(1001,()=>{
    console.log('启动1001');
    
});